<html>
    <head>
        <title>菜单组</title>
    </head>
    <body>
        <script>
            /*
                8、菜单组   Menu Groups

                                                   您可以定义组并将菜单项与组相关联

                                                   eg：  

                                                            using System.Threading.Tasks;
                                                            using MyProject.Localization;
                                                            using Volo.Abp.UI.Navigation;

                                                            namespace MyProject.Web.Menus
                                                            {
                                                                public class MyProjectMenuContributor : IMenuContributor
                                                                {
                                                                    public async Task ConfigureMenuAsync(MenuConfigurationContext context)
                                                                    {
                                                                        if (context.Menu.Name == StandardMenus.Main)
                                                                        {
                                                                            await ConfigureMainMenuAsync(context);
                                                                        }
                                                                    }

                                                                    private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)
                                                                    {
                                                                        var l = context.GetLocalizer<MyProjectResource>();

                                                                        context.Menu.AddGroup(
                                                                            new ApplicationMenuGroup(
                                                                                name: "Main",
                                                                                displayName: l["Main"]
                                                                            )
                                                                        )
                                                                        context.Menu.AddItem(
                                                                            new ApplicationMenuItem("MyProject.Crm", l["Menu:CRM"], groupName: "Main")  // 添加到菜单组
                                                                                .AddItem(new ApplicationMenuItem(
                                                                                    name: "MyProject.Crm.Customers", 
                                                                                    displayName: l["Menu:Customers"], 
                                                                                    url: "/crm/customers")
                                                                                ).AddItem(new ApplicationMenuItem(
                                                                                    name: "MyProject.Crm.Orders", 
                                                                                    displayName: l["Menu:Orders"],
                                                                                    url: "/crm/orders")
                                                                                )
                                                                        );      
                                                                    }
                                                                }
                                                            }

                                                            UI主题将决定是否渲染组，如果它决定渲染，它的渲染方式取决于主题。只有LeptonX主题实现了菜单组。
            */
        </script>
    </body>
</html>